package fr.umlv.m2.uwp2011.persistence.matiere.dao;

import org.springframework.stereotype.Repository;

import fr.umlv.m2.uwp2011.framework.hibernate.AbstractHibernateDAO;
import fr.umlv.m2.uwp2011.persistence.matiere.Cursus;
import fr.umlv.m2.uwp2011.persistence.matiere.ICursusDAO;

@Repository("hibernateCursusDAO")
public class HibernateCursusDAO extends AbstractHibernateDAO<Long, Cursus> implements ICursusDAO{

	@Override
	public Cursus findByLibelle(String libelle) {
		return super.findEntityByQuery("from Cursus where cursus_libelle='"+libelle+"'");
	}

}
